/**
 * Point
 *
 */
if(typeof (module) !="undefined"){
    module.exports = MapObjExtData;
}



// 屏幕坐标中的点，用像素为单位
function MapObjExtData() 
{
	this.type = MapCommon.prototype.OBJECT_TYPE_0 ;
	this.hard = MapCommon.prototype.HARD_0;

	this.select=false; // 默认不选中
    this.id=0;
    this.visible = true; // 默认显示
    this.label = null;
}

/**
 * 序列化／反序列化 
 */
MapObjExtData.prototype.toJson = function (){
	var ret = "{";
	
	ret +=('"type":'+this.type);
	ret +=(',"hard":'+this.hard);
	
	ret +="}";
	return ret;
}
MapObjExtData.prototype.fromJson = function (jsonObj){
	if(jsonObj){
		if(jsonObj.type){
			this.type = jsonObj.type;
		}
		if(jsonObj.hard){
			this.hard = jsonObj.hard;
		}
	}
}

/**
 * setter 
 */
MapObjExtData.prototype.setType = function (v){
	this.type = v;
}
MapObjExtData.prototype.getType = function (v){
	return this.type  ;
}
/**
 * setter 
 */
MapObjExtData.prototype.setSelect = function (v){
	this.select = v;
}
MapObjExtData.prototype.getSelect = function (v){
	return this.select  ;
}
/**
 * setter 
 */
MapObjExtData.prototype.setId = function (v){
	this.id = v;
}
MapObjExtData.prototype.getId = function (v){
	return this.id  ;
}
/**
 * setter 
 */
MapObjExtData.prototype.setVisible = function (v){
	this.visible = v;
}
MapObjExtData.prototype.getVisible = function (v){
	return this.visible  ;
}
/**
 * setter 
 */
MapObjExtData.prototype.setLabel = function (v){
	this.label = v;
}
MapObjExtData.prototype.getLabel = function (v){
	return this.label  ;
}
 
